<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title>菜鸟教程(runoob.com)</title>
    <script>
        function myFunction() {
            return ("Hello world!");
        }
    </script>
</head>

<body>

    <script>
        document.write(myFunction())
    </script>

</body>

</html>